﻿namespace Labthink.PCSoft.UniversalHost4.Instrument.ViewModel
{
    public class SaveDialogVm : ViewModelBase
    {
        public DelegateCommand OkCmd { get; set; }

        public DelegateCommand CancelCmd { get; set; }

        private string _name;
        private bool _isDefault;

        public SaveDialogVm()
        {
            OkCmd = new DelegateCommand();
            CancelCmd = new DelegateCommand();
        }

        public string Name
        {
            get => _name;
            set
            {
                _name = value;
                OnPropertyChanged(nameof(Name));
            }
        }

        public bool IsDefault
        {
            get => _isDefault;
            set
            {
                _isDefault = value;
                OnPropertyChanged(nameof(IsDefault));
            }
        }
    }
}
